import requests, unittest

class Login(unittest.TestCase):

    def setUp(self) -> None:
        print('开始测试')

    def tearDown(self) -> None:
        print('测试结束')

    # 登录
    def test_01_login(self):
        # cookie免登录
        r1 = requests.post(url='http://10.59.9.32/jeewms/loginController.do?checkuser',
                           headers={'cookie':'JSESSIONID=B16E8133A0005AD41BE06F565B0E4FAD; JEECGINDEXSTYLE=ace; ZINDEXNUMBER=2020'})
        print(r1.json())


if __name__ == '__main__':
    unittest.main()
